package br.edu.ufcg.greengrid.util;

import java.text.ParseException;

public interface Transform<M> {

	/**
	 * Return main type from secondary type.
	 * 
	 * @param secondaryType
	 * @return
	 * @throws ParseException
	 */
	public M from(String secondaryType) throws ParseException;

	/**
	 * Return secondary type from main type.
	 * 
	 * @param mainType
	 * @return
	 * @throws ParseException
	 */
	public String to(M mainType) throws ParseException;
	
}